package com.util;

import java.sql.Timestamp;
import java.util.Date;

public abstract class BasePojo {

	protected Timestamp	createdTime;
	protected Timestamp	latestModify;
	protected Boolean	deleted;
	protected Integer	id;
	
	public BasePojo() {
		this.createdTime = new Timestamp(new Date().getTime());
		this.deleted = false;
	}

	public Timestamp getCreatedTime() {
		return createdTime;
	}

	public void setCreatedTime(Timestamp createdTime) {
		this.createdTime = createdTime;
	}

	public Timestamp getLatestModify() {
		return latestModify;
	}

	public void setLatestModify(Timestamp latestModify) {
		this.latestModify = latestModify;
	}

	public Boolean getDeleted() {
		return deleted;
	}

	public void setDeleted(Boolean deleted) {
		this.deleted = deleted;
	}

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}
	
	public abstract BasePojo copyFrom(BasePojo pojo);

}
